home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- TimeText/--background--
- TimeText/MUIA_TimeText_TimeFormat
- TimeText/--background--
-
- NAME
- TimeText -- ... (V12)
-
- FUNCTION
- TimeText is a Custom Class of the Magic User Interface © by Stefan
- Stuntz. It's a subclass of text-class and time-class.
-
- The idea of this class was born during developing my Gregor
- application.
-
- MUI public custom class that displaying a text gadget for time
- strings. The display format of the time string can be freely defined.
-
- NOTES
- None.
-
- SEE ALSO
- MCC_Time.doc
- TimeText/MUIA_TimeText_TimeFormat
-
- NAME
- MUIA_TimeText_TimeFormat, STRPTR [ISG] -- Time format string (V12)
-
- SYNOPSIS
- MUIA_TimeText_TimeFormat, "%H:%M:%S",
-
- \*result =*\ set(obj,MUIA_TimeText_TimeFormat,tfs);
- \*result =*\ get(obj,MUIA_TimeText_TimeFormat,&tfs);
-
- FUNCTION
- The MUIA_TimeText_TimeFormat attribute of a TimeText object can
- be used to define a time format.
- Defaults to system Locale->loc_ShortTimeFormat or "%H:%M" if no
- locale can be found.
-
- INPUTS
- tfs - Time format string
-
- RESULT
- tfs - Time fromat string
-
- NOTES
- Syntax of Amiga compatible % commands:
- %q - hour using 24-hour style
- %Q - hour using 12-hour style
- %H - hour using 24-hour style with leading 0s
- %I - hour using 12-hour style with leading 0s
- %p - AM or PM strings
- %M - the number of minutes with leading 0s
- %S - number of seconds with leadings 0s
- %r - same as "%I:%M:%S %p"
- %R - same as "%H:%M"
- %T - same as "%H:%M:%S"
- %X - same as "%H:%M:%S"
-
- Syntax of % commands:
- %Th1f - hour using 12h style with leading 0s
- %Th1v - hour using 12h style without leading 0s
- %Th2f - hour using 24h style with leading 0s
- %Th2v - hour using 24h style without leading 0s
- %Tpso - a/p
- %Tpsu - A/P
- %Tplo - am/pm
- %Tplu - AM/PM
- %Tmf - minute with leading 0s
- %Tmv - minute without leading 0s
- %Tsf - second with leading 0s
- %Tsv - second without leading 0s
- %Tj. - jd time starting with '.'
- %Tj, - jd time starting with ','
- %Tj0 - jd time starting with '0.'
- %Tj1 - jd time starting with '0,'
-
- %Tzh?? : hours only
- %Tzm? : 0100 (always with leading 0s)
- %TzM?? : 01:00
- %Tz?z? : Use Z for UTC/GMT
- %Tz?0? : Use +00 for UTC/GMT
- %Tz??f : use leading 0s
- %Tz??v : do not use leading 0s
-
- %Tc1 : Use DST for summer->winter change hour
- %Tc2 : Use I/II for summer->winter change hour
- %Tc3 : Use a/b for summer->winter change hour (24h only) - on 12h
- falls back to 2
-
- BUGS
- No known bugs.
-
- SEE ALSO
-